import request from '@/utils/system/request'

// 获取基础数据
export function cashReviewRecords(data: object) {
    return request({
        url: '/admin/order/cash_review_records',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function productReviewRecords(data: object) {
    return request({
        url: '/admin/order/product_review_records',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function productList(data: object) {
    return request({
        url: '/admin/product/list',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function productUpdate(data: object) {
    return request({
        url: '/admin/product/update',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function productPicture(data: any) {
    return request({
        url: '/admin/product/picture',
        method: 'post',
        baseURL: '/api',
        data: data.data
    })
}
export function productImports(data: object) {
    return request({
        url: '/admin/product/excel/imports',
        method: 'post',
        baseURL: '/api',
        data: data
    })
}
export function exportCashReviewRecords(data: object) {
    return request({
        url: '/admin/order/export_cash_review_records',
        method: 'post',
        baseURL: '/api',
        data: data
    })
}
export function exportProductReviewRecords(data: object) {
    return request({
        url: '/admin/order/export_product_review_records',
        method: 'post',
        baseURL: '/api',
        data: data
    })
}
export function batchDeleteOrder(data: object) {
    return request({
        url: '/admin/order/batch_delete_order',
        method: 'post',
        baseURL: '/api',
        data: data
    })
}
export function batchDel(data: object) {
    return request({
        url: '/admin/product/batch_del',
        method: 'post',
        baseURL: '/api',
        data: data
    })
}


// // 获取用户信息Api
export function refreshIncomeRank(data: object) {
    return request({
        url: '/admin/user/refresh_income_rank',
        method: 'post',
        baseURL: '/api',
        data
    })
}
// // 获取用户信息Api
export function productExport(data: object) {
    return request({
        url: '/admin/product/excel/exports',
        method: 'post',
        baseURL: '/api',
        data
    })
}
